<?php
if (isset($_POST['status'])) {
    $status = $_POST['status'];
}
if($status=="") {
    header("location: ../frontend.php");
}
mysql_connect("localhost","root","");
mysql_select_db("susudo");
$status_update_query="UPDATE `status` SET `status_content`='$status' WHERE `id`=$user_id";
mysql_query($status_update_query);
mysql_close();
header("location: ../frontend.php");
?>
